package com.iyjhsoc.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iyjhsoc.game.domain.VO.CompetitionSmallGameVO;
import com.iyjhsoc.game.domain.VO.GameKillInfoVO;
import com.iyjhsoc.game.domain.dto.CompetitionSmallGameDTO;
import com.iyjhsoc.game.domain.dto.GameKillInfoDTO;
import com.iyjhsoc.game.domain.entity.CompetitionSmallGameDO;
import com.iyjhsoc.game.service.GameKillInfoService;
import com.mysql.jdbc.log.Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompetitionSmallGameDAO extends BaseMapper<CompetitionSmallGameDO> {

    List<CompetitionSmallGameVO> queryList(CompetitionSmallGameVO vo);

    List<CompetitionSmallGameVO> queryCompetitionToGame(CompetitionSmallGameVO vo);


    /**
     * 获取队伍比赛或胜利信息
     */
    List<CompetitionSmallGameVO> getCompetitionVORFInfo(CompetitionSmallGameVO vo);

    Integer selectCompetitionSmallGame(Long competitionId);

    /**
     * 总对局数量
      * @return
     */
    Integer selectCompetitionSixOneKillRare(String name,String matchId);

    List<CompetitionSmallGameDTO> queryTeamGameHistory(@Param("teamA") Long teamA, @Param("teamB") Long teamB);


    List<CompetitionSmallGameDTO> selectGameValue(CompetitionSmallGameVO vo);
}
